package cn.edu.scau.cmi.chenyaoquan.simpleFactoryMethod;

public class MeatFactory {
	public		Meat getMeatObj(String option) {
		Meat meat = null;
		if(option.compareTo("pork")==0) {
			meat = new Pork();
		}
		if(option.compareTo("beef")==0) {
			meat = new Beef();
		}
		if(option.compareTo("chicken")==0) {
			meat = new Chicken();
		}
		return meat;
	}
}
